<?php
use App\Models\UsersModel;
use Illuminate\Database\Seeder;
use Webpatser\Uuid\Uuid;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $this->createFounderUser();
    }
    
    /**
     * 插入创始人信息.
     * @author Jamie<327240570@qq.com>
     * @since  2017-08-11T17:44:19+0800
     * @return [type]                   [description]
     */
    protected function createFounderUser()
    {
        $user = UsersModel::create(['name' => 'root', 'openid' => Uuid::generate(5, '15552536661', Uuid::NS_DNS), 'password' => bcrypt('root'), 'mobile' => '15552536661', 'email' => 'wk1025@126.com']);
    }
}
